
ajaxAnywhere.showLoadingMessage = function() {
  loadingTo(null,true);
};

ajaxAnywhere.hideLoadingMessage = function() {
  loadingStop();
};


function aaOpList(frm, sortValue, sortOrder, navMode) {
  if (!frm) {
    for (var i = 0; i < document.forms.length; i++) {
      if (document.forms[i].name != "") {
        frm = document.forms[i];
        break;
      }
    }
  }

  frm.sortAttribute.value = sortValue;
  frm.sortOrder.value = sortOrder;
  frm.curStartRowNo.value = 1;

  frm.opMode.value = NAV_MODE_LIST;
  frm.navMode.value = NAV_MODE_LIST;
  if (navMode!=null) {
    frm.navMode.value = navMode;
  }

  ajaxAnywhere.submitAJAX();

//  frm.submit();
  return false;
} // end of the 'OpList()' function


function aaOpListDelete(frm) {
  if (!frm) {
    for (var i = 0; i < document.forms.length; i++) {
      if (document.forms[i].name != "") {
        frm = document.forms[i];
        break;
      }
    }
  }
  var hasChecked = false;

  for (var i = 0; i < frm.elements.length; i++) {
    if (frm.elements[i].name == "basicSelectedID") {
      if (frm.elements[i].checked) {
        hasChecked = true;
        break;
      }
    }
  }

  if (!hasChecked) {
    alert(MSG_NO_RECORD_SELECTED);
    return(false);
  }

  if (!confirm(MSG_CONFIRM_DELETE_RECORDS)) {
    return(false);
  }

  frm.opMode.value = OP_MODE_LIST_DELETE;
  frm.navMode.value = "";

  ajaxAnywhere.submitAJAX();

//  return OpSubmit(frm);
} // end of the 'OpListDelete()' function


function aaPagerGotoPage(frm, value, navMode) {
  if (!frm) {
    for (var i = 0; i < document.forms.length; i++) {
      if (document.forms[i].name != "") {
        frm = document.forms[i];
        break;
      }
    }
  }
  document.forms[frm].curStartRowNo.value = value;
  document.forms[frm].navMode.value = NAV_MODE_LIST;
  document.forms[frm].opMode.value = "";
  if (navMode!=null) {
    document.forms[frm].navMode.value = navMode;
  }

  ajaxAnywhere.submitAJAX();
  //  document.forms[frm].submit();
  //  return (false);
  void(0);
} // end of the 'pagerGotoPage()' function